import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import TestSocket from '@/views/socket'
import Xlsx from '@/views/xlsx'
import Word from '@/views/word'
import Button from '@/views/button'
import ElementUIInfo from '@/views/elementui'
import Test from '@/views/test'
import Time from '@/views/time'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/websocket',
      name: 'websocket',
      component: TestSocket
    },
    {
      path: '/xlsx',
      name: 'xlsx',
      component: Xlsx
    },
    {
      path: '/word',
      name: 'word',
      component: Word
    },
    {
      path: '/button',
      name: 'button',
      component: Button
    },
    {
      path: '/elementui',
      name: 'elementui',
      component: ElementUIInfo
    },
    {
      path: '/test',
      name: 'Test',
      component: Test
    },
    {
      path: '/time',
      name: 'Time',
      component: Time
    }
  ]
})
